package cn.com.zcode.exam.service;

import java.util.List;

import cn.com.zcode.core.service.BaseService;
import cn.com.zcode.exam.model.Answer;
import cn.com.zcode.exam.model.Examination;
import cn.com.zcode.exam.model.Paper;
import cn.com.zcode.exam.model.Question;
import cn.com.zcode.exam.model.StaticInfo;
import cn.com.zcode.exam.model.Wrong;

public interface ExamService extends BaseService {
	public Question addQuestion(Question question);

	public List<Question> findQuestions(String key);

	public Paper getPaper(String string);

	public Paper mergePaper(Paper paper);

	public Paper addPaper(Paper paper);

	public Answer addAnswer(Answer answer);

	public Examination addExamination(Examination examination);

	public Wrong addWrong(Wrong wrong);

	public List<Paper> findPapers(String key, String userid);

	public Wrong getWrong(String userId, String questionId);

	public List<StaticInfo> getStatinfo(String string);

	public List<Question> findWrongQuestions(String type, String userId);

	public Paper getPaper(String type, String title, int state, String userid);

	public List<StaticInfo> getPaperInfo(String type);

	public List<Question> searchQuestions(String keyword, String userId);

	public Question getQuestion(String id);

	public Question updateQuestion(Question question);

	public List<Examination> findExamination(String string, String id);

	public List<Question> findNewExamQuestions(String pid);

	public List<Question> findLastExamQuestions(String eid);

	public void saveFinishExamination(String eid);

}